package org.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.Audit;
import org.example.entity.ChatMessage;
import org.example.mapper.AuditMapper;
import org.example.mapper.ChatMessageMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import org.springframework.data.domain.Pageable;

import java.util.List;

@Service

public class ChatMessageService extends ServiceImpl<ChatMessageMapper, ChatMessage> {
    @Resource
    private ChatMessageMapper chatMessageMapper;

    public List<ChatMessage> findByProjectNameOrderByDateDesc(String projectName) {
        return chatMessageMapper.findByProjectNameOrderByDateDesc(projectName);
    }
}
